package server.invoker;

import server.command.receive.Command;
import server.resp.send.Resp;

public class CommandInvoker {
	private Command command;
	
	public CommandInvoker(Command command) {
		super();
		this.command = command;
	}

	public void setCommand(Command command) {
		this.command = command;
	}
	
	public Resp invoke(){
		return command.execute();
	}
}